package com.bsj.travel.constant;

/***
 * @description RegularExpressionConstants
 * @author LiJiaXin
 * @version 1.0.0
 * @time 2024/1/10 14:39
 **/
public class RegularExpressionConstants {

    /**
     * 电话号
     */
    public static final String PHONE_REGULAR = "^((13[0-9])|(14[5,7,9])|(15([0-3]|[5-9]))|(166)|(17[0,1,3,5,6,7,8])|(18[0-9])|(19[0,1,2,3,5,6,7,8,9]))\\d{8}$";

    /**
     * 数字和字母
     */
    public static final String NUMBERS_AND_LETTERS = "^[a-zA-Z0-9]+$";

    /**
     * 数字
     */
    public static final String NUMBERS = ".*\\d+.*";

    /**
     * 中文
     */
    public static final String CHINESE = "[\\u4E00-\\u9FA5]";

    /**
     * Topic正则表达式
     */
    public static final String TOPICS_REGEX = "^[A-Za-z0-9_/]+$";

    /**
     * 用户名和登录用户名正则校验
     */
    public static final String USERNAME_REGEXP = "^[a-zA-Z0-9]{1,20}$";

}
